<h1>Album Management</h1>
<h3><a href="<?php echo $this->url(array("controller"=>"album","action"=>"add",)); ?>">Add Album</a></h3>
<table>
    <tr>
        <td> Title </td>
        <td> Artist </td>
        <td> Change </td>
    </tr>
    <?php 
        if(isset($this->data)){
            foreach ($this->data as $key => $value) { 
    ?>
    <tr>
        <td><?php echo $this->escape($value["title"]) ;?></td>
        <td><?php echo $this->escape($value["artist"]) ;?></td>
        <td>
        <a href="<?php echo $this->url(array('controller'=>'album', 
            'action'=>'edit', 'id'=>$value['id']));?>">Edit</a>
        <a href="<?php echo $this->url(array('controller'=>'album', 
            'action'=>'delete', 'id'=>$value['id']));?>">Delete</a>
    </td>
    </tr>
    <?php }} ?>
</table>

